import ReactDOM from 'react-dom/client';
import 'reset-css';
import App from './App.tsx';
import '@/styles/app.scss';
import { BrowserRouter } from 'react-router-dom';
import { RecoilRoot } from 'recoil';
import { AliveScope } from 'react-activation';
import ErrorBoundary from './components/ErrorBoundary';
ReactDOM.createRoot(document.getElementById('root')!).render(
    <ErrorBoundary>
        <BrowserRouter>
            <RecoilRoot>
                <AliveScope>
                    <App />
                </AliveScope>
            </RecoilRoot>
        </BrowserRouter>
    </ErrorBoundary>
);
